package com.bruce.spring.http.client.factory;

import org.springframework.web.service.invoker.HttpExchangeAdapter;

/**
 * Created by bruce in 2025/6/29 02:21
 */
public interface HttpExchangeAdapterCreator {

    // Reactor netty http client
    HttpExchangeAdapter useReactorNettyHttpClient(String url);

    // Jdk9+ httpClient
    HttpExchangeAdapter useJdk9HttpClient(String url);

    // Apache HttpClient5
    HttpExchangeAdapter useApacheHttpClient5(String url);

    // Jdk HttpUrlConnection
    HttpExchangeAdapter useHttpUrlConnection(String url);

}
